package com.baomidou.ant.kingdee.config;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 金蝶云星空配置类处理方法
 */
public class KindeeConfig {
    public static Properties myProp = new Properties();

    public static InputStream myResource =KindeeConfig.class.getResourceAsStream("/kdwebapi.properties");

    static {
        try {
            myProp.load(myResource);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getMyConf(String props) {
        return myProp.getProperty(props);
    }

    public final static String AcctID=getMyConf("X-KDApi-AcctID");
    public final static String AppID=getMyConf("X-KDApi-AppID");
    public final static String AppSec=getMyConf("X-KDApi-AppSec");
    public final static String UserName=getMyConf("X-KDApi-UserName");
    public final static String LCID=getMyConf("X-KDApi-LCID");
    public final static String ServerUrl=getMyConf("X-KDApi-ServerUrl");
    public final static String ConnectTimeout=getMyConf("X-KDApi-ConnectTimeout");
}
